// 获取人员库列表
// Depends on tencentcloud-sdk-nodejs version 4.0.3 or higher
const tencentcloud = require("tencentcloud-sdk-nodejs");

const IaiClient = tencentcloud.iai.v20200303.Client;

const clientConfig = {
  credential: {
    secretId: "AKIDSUKxMWVL0b8bw4zfCYryAE4ez4vWr78t",
    secretKey: "YqtlXDy7ESipiPt9D9wVrCLGxQlunTff",
  },
  region: "ap-beijing",
  profile: {
    httpProfile: {
      endpoint: "iai.tencentcloudapi.com",
    },
  },
};

const client = new IaiClient(clientConfig);
const params = {};
client.GetGroupList(params).then(
  (data) => {
    console.log(data);
  },
  (err) => {
    console.error("error", err);
  }
);